function onBridgeReady() {
	WeixinJSBridge.call('hideOptionMenu');
}
if (typeof WeixinJSBridge == "undefined") {
	if (document.addEventListener) {
		document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	} else if (document.attachEvent) {
		document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
		document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	}
} else {
	onBridgeReady();
}
// 关闭当前webview窗口 - closeWindow
var readyFunc = function onBridgeReady() {
	var curid;
	var curAudioId;
	var playStatus = 0;
	document.querySelector('#closeWindow').addEventListener('click',
			function(e) {
				WeixinJSBridge.invoke('closeWindow', {}, function(res) {
				});
			});
}
if (typeof WeixinJSBridge === "undefined") {
	document.addEventListener('WeixinJSBridgeReady', readyFunc, false);
} else {
	readyFunc();
}